package com.sf.fy.uav.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 钱包
 * </p>
 *
 * @author LTQ
 * @since 2023-08-25
 */
@TableName("user_wallet")
@ApiModel(value = "UserWallet对象", description = "钱包")
public class UserWallet implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("余额")
    private BigDecimal balance;

    @ApiModelProperty("累计奖励")
    private BigDecimal accumulatedRewards;

    @ApiModelProperty("累计提现")
    private BigDecimal accumulatedWithdrawal;

    @ApiModelProperty("用户id")
    private String userId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public BigDecimal getAccumulatedRewards() {
        return accumulatedRewards;
    }

    public void setAccumulatedRewards(BigDecimal accumulatedRewards) {
        this.accumulatedRewards = accumulatedRewards;
    }

    public BigDecimal getAccumulatedWithdrawal() {
        return accumulatedWithdrawal;
    }

    public void setAccumulatedWithdrawal(BigDecimal accumulatedWithdrawal) {
        this.accumulatedWithdrawal = accumulatedWithdrawal;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "UserWallet{" +
                "id = " + id +
                ", createTime = " + createTime +
                ", updateTime = " + updateTime +
                ", balance = " + balance +
                ", accumulatedRewards = " + accumulatedRewards +
                ", accumulatedWithdrawal = " + accumulatedWithdrawal +
                ", userId = " + userId +
                "}";
    }
}
